// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WebPasswordCredential_h
#define WebPasswordCredential_h

#include "public/platform/WebCommon.h"
#include "public/platform/WebCredential.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"

namespace blink {

// TODO(mkwst): Throw this away once it's unused on the Chromium side: https://crbug.com/494880
class WebPasswordCredential : public WebCredential {
public:
    BLINK_PLATFORM_EXPORT WebPasswordCredential(const WebString& id, const WebString& password, const WebString& name, const WebURL& avatarURL);

    BLINK_PLATFORM_EXPORT void assign(const WebPasswordCredential&);

    BLINK_PLATFORM_EXPORT WebString password() const;

#if INSIDE_BLINK
    BLINK_PLATFORM_EXPORT WebPasswordCredential(PlatformCredential*);
    BLINK_PLATFORM_EXPORT WebPasswordCredential& operator=(PlatformCredential*);
#endif
};

} // namespace blink

#endif // WebPasswordCredential_h



